package com.teacher.pc.controller;

import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.dataAnalysis.*;
import com.teacher.pojo.vo.dataAnalysis.*;
import com.teacher.service.IDataAnalysisService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zfm
 * @date 2021/9/8 9:51
 */
@RestController
@RequestMapping("/pc/data-analysis")
public class DataAnalysisController {

    @Autowired
    private IDataAnalysisService iDataAnalysisService;

    /**
     * 证书查询
     *
     * @param dto
     * @return
     */
    @ApiOperation("证书查询")
    @GetMapping("/certificate")
    public CommonResult<List<DataAnalysisCertificateGetVo>> getCertificate(DataAnalysisCertificateGetDto dto) {
        return iDataAnalysisService.getCertificate(dto);
    }

    /**
     * 任职查询
     *
     * @param dto
     * @return
     */
    @ApiOperation("任职查询")
    @GetMapping("/job")
    public CommonResult<List<DataAnalysisJobGetVo>> getJob(DataAnalysisJobGetDto dto) {
        return iDataAnalysisService.getJob(dto);
    }

    /**
     * 学科竞赛获奖
     *
     * @param dto
     * @return
     */
    @ApiOperation("学科竞赛获奖")
    @GetMapping("/courseContests")
    public CommonResult<List<DataAnalysisCourseContestsGetVo>> getCourseContests(DataAnalysisCourseContestsGetDto dto) {
        return iDataAnalysisService.getCourseContests(dto);
    }

    /**
     * 寝室等级
     *
     * @param dto
     * @return
     */
    @ApiOperation("寝室等级")
    @GetMapping("/bedroomLevel")
    public CommonResult<List<DataAnalysisBedroomLevelGetVo>> getBedroomLevel(DataAnalysisBedroomLevelGetDto dto) {
        return iDataAnalysisService.getBedroomLevel(dto);
    }

    /**
     * 奖学金
     *
     * @param dto
     * @return
     */
    @ApiOperation("奖学金")
    @GetMapping("/reward")
    public CommonResult<List<DataAnalysisRewardGetVo>> getReward(DataAnalysisRewardGetDto dto) {
        return iDataAnalysisService.getReward(dto);
    }

    /**
     * 文艺获奖
     *
     * @param dto
     * @return
     */
    @ApiOperation("文艺获奖")
    @GetMapping("/culturalActivitiesReward")
    public CommonResult<List<DataAnalysisCulturalActivitiesRewardGetVo>> getCulturalActivitiesReward(DataAnalysisCulturalActivitiesRewardGetDto dto) {
        return iDataAnalysisService.getCulturalActivitiesReward(dto);
    }

}
